import request from '@/router/axios';
import {
    formateTime
} from '../util/date';
export const list = (data) => request({
    url: '/admin/express_template/list',
    method: 'post',
    data
}).then(data => {
    data = data || [];
    return data;
});
export const create = (data) => request({
    url: '/admin/express_template/add',
    method: "post",
    data
});
export const update = (data) => request({
    url: '/admin/express_template/modify',
    method: "post",
    data
});
export function detail(id) {
    return request.post('/admin/express_template/detail', { id });
}
export const remove = (id) => request({
    url: '/admin/express_template/delete',
    method: "post",
    data: {
        id: Array.isArray(id) ? id : [id]
    }
});
